﻿<%@ Page Language="C#" AutoEventWireup="true" Theme="Default" CodeBehind="ChaXunYHXX.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS._8.QiTaGL.ChaXunYHXX" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户信息</title>
    <script src="/JS/AddEditCancel.js"></script>
    <script src="/JS/jquery.js"></script>
    <script type="text/javascript">

        function ShowMag(values) {
            //alert(values);
            try {
                if (typeof (window.dialogArguments.SetSelectValue) == "function") {
                    window.dialogArguments.SetSelectValue(values[0], values[1]);
                }

            }
            catch (ex) {

            }
            finally {
                window.close();
            }

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <div>
            <div class="tabletitle1" align="center">
                查询特殊用户
            </div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table style="width: 96%; margin:0px auto">
                        <tr>
                            <td style="width: 80px" align="right">用户名：
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtYongHuM" Width="100%" ClientEnabled="false" ClientInstanceName="txtYongHuM" runat="server">
                                </dx:ASPxTextBox>
                            </td>
                            <td>
                                <dx:ASPxButton ID="BtnSearch" ClientInstanceName="BtnSearch" OnClick="BtnSearch_Click" runat="server" Text="查询"
                                    UseSubmitBehavior="false">
                                </dx:ASPxButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <dx:ASPxGridView ID="gvList" SettingsBehavior-AllowSort="false" ClientInstanceName="gvList" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YONGHUH" Theme="Aqua1" Width="100%">
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="用户号" Width="100px" FieldName="S_YONGHUH">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="用户名" FieldName="S_YONGHUM"></dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsBehavior AllowSelectByRowClick="true" />
                                    <Settings VerticalScrollableHeight="315" VerticalScrollBarMode="Auto" />
                                    <ClientSideEvents Init="function(s,e){AdjustSize(100,gvList);}"
                                        RowDblClick="function(s,e){s.GetRowValues(e.visibleIndex, 'S_YONGHUH;S_YONGHUM', ShowMag);}" />
                                </dx:ASPxGridView>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>

    </form>
</body>
</html>
